 
-----------------------------
Generating Binomial N samples
p =  0.3 N =  20
  
  Generating Binomial Distribution samples.
  Date and time plus nanoseconds
Wed Jun 18 16:47:08 EDT 2014
803443834
  
[1] 0.3
[1] 20
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] 0.0004276 0.0064748 0.0760336 0.8005292
[1] "Relative difference of empirical moments from theoretical ones:"
[1] 7.126667e-05 1.610647e-04 2.592526e-04 3.487616e-04
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] -8.346888e-17  1.343417e-03  2.785166e-04  1.954643e-03
[1] "Relative difference of empirical central moments from theoretical ones (except first):"
[1] 3.341834e-05 9.496610e-07 8.515670e-07
                         test   P.value KS.test
1                  Chi Square 0.6635860  Passed
2            Likelihood Ratio 0.6635860  Passed
3               Freeman-Tukey 0.4321164  Passed
4 Power Divergence (lambda=2) 0.7504185  Passed
[1] 0.3
[1] 20
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] 0.0004276 0.0064748 0.0760336 0.8005292
[1] "Relative difference of empirical moments from theoretical ones:"
[1] 7.126667e-05 1.610647e-04 2.592526e-04 3.487616e-04
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] -8.346888e-17  1.343417e-03  2.785166e-04  1.954643e-03

	One-sample Kolmogorov-Smirnov test

data:  bin.unif
D = 0.0003, p-value = 0.2831
alternative hypothesis: two-sided

